<?php

/**
 * @author 
 * @copyright 2008
 */
$table_tree = $db->pfx."admin_tree";
$table_content = $db->pfx."admin_content";
$items=$db->fetch_array("SELECT t.*,c.title,c.menu_title,c.content FROM $table_tree AS t, $table_content AS c WHERE t.pid = '0' AND t.id <> '0' AND t.status <> '0' AND c.tree_id = t.id ORDER BY t.order_num");
if($items != false and !empty($items))
{
	$smarty->assign("items",$items);
}
?>